<?php if($oRoot): ?>
  <ul class="ca_pnsm_tree">
    <?php $iRootId = call_user_func(array($oRoot, sfConfig::get('app_caPropelTreePlugin_sObjectIdMethod'))); ?>
    <li  class="root" >
      <span id="node_<?php echo $iRootId; ?>">
        <?php include_partial('caPropelTree/nodeName',array('oNode' => $oRoot)); ?>
      </span>
      <?php include_partial('caPropelTree/nodeSimpleMenu',array('iNodeId' => $iRootId)) ;?>

      <ul id="node_children_<?php echo $iRootId; ?>">
           <?php include_partial('caPropelTree/liSome', array('oNode' => $oRoot, 'iParentId' => $iRootId)); ?>
      </ul>
    </li>
  </ul>
<?php endif; ?>
